<div class="boxes">
    <h5>Tin moi</h5>
    <ul>
        <?php 
            $recent_posts = wp_get_recent_posts();
            foreach( $recent_posts as $recent ){?>
                 <li>
                     <a href="<?php get_permalink($recent["ID"])?> " title="<?php echo 'Look '.esc_attr($recent["post_title"])?>">  
                        <img src="<?php echo get_post_meta( $recent["ID"], 'thumbnail', true );?>"/> 
                        <?php echo $recent["post_title"]?>
                     </a> 
                 </li> 
        <?php }
        ?>
    </ul>
</div>


<?php if(function_exists('dynamic_sidebar') && dynamic_sidebar('left-sidebar')): else: ?>
<?php endif; ?>